package negocio;



import javax.persistence.Entity;

import javax.persistence.CascadeType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="semielaborados")
@PrimaryKeyJoinColumn(name="id_semielaborado")
public class SemiElaborado extends Producto {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	
	
	@OneToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="id_receta", referencedColumnName="id_receta")
	private Receta receta;


	public Receta getReceta() {
		return receta;
	}


	public void setReceta(Receta receta) {
		this.receta = receta;
	}



}
